package com.franklin.ideaplugin.maphelper.col.operation.impl.map;

import com.franklin.ideaplugin.maphelper.col.method.IColCreateMethod;
import com.franklin.ideaplugin.maphelper.col.operation.IColCreateOperation;
import com.franklin.ideaplugin.maphelper.col.method.impl.ColCreateMethodImpl;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;

import java.util.Set;

/**
 * guava Maps
 *
 * @author Ye Junhui
 * @since 2024/3/12
 */
public class GuavaMapsCreateOperation implements IColCreateOperation {
    @Override
    public String getClassQualifiedName() {
        return Maps.class.getName();
    }

    @Override
    public Set<IColCreateMethod> getCreateMethods() {
        return Sets.newHashSet(
                new ColCreateMethodImpl("newHashMap",1),
                new ColCreateMethodImpl("newLinkedHashMap",1),
                new ColCreateMethodImpl("newTreeMap",1)
        );
    }
}
